package com.mask.im.business.model.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 资源管理实体类
 *
 * @author jian
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("sys_resource")
public class SysResourceEntity {
    //资源路径id
    private Integer id;
    //接口功能名称
    private String resourceName;
    //接口路径
    private String url;
    //访问的接口方式
    private String requestMethod;
    //父ID
    private Integer parentId;
    //是否匿名，0不匿名，1匿名
    private Integer isAnonymous;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}

